package appapi.dao;

import appapi.Request.DismantReq;
import appapi.Vo.GetDismantPageVo;
import appapi.entity.Zhongjiao.EquipmentdismantDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;import java.util.Map;

/**
 * @author djq
 * @date 2023/5/25 9:53
 * @description:
 */

@Mapper
public interface EquipmentdismantMapper {
    int deleteByPrimaryKey(Long dismId);

    int insert(EquipmentdismantDto record);

    int insertSelective(EquipmentdismantDto record);

    EquipmentdismantDto selectByPrimaryKey(Long dismId);

    int updateByPrimaryKeySelective(EquipmentdismantDto record);

    int updateByPrimaryKey(EquipmentdismantDto record);

    List<Map<String, Object>> selectList(long equip_id);

    List<Map<String, Object>> selectDismantList(@Param("equipId") Long equipId);

    Map<String, Object> selectDismantDtail(Long dismId);

    int deleteByIds(@Param("dismIds") List<Long> dismIds);

    List<GetDismantPageVo> selectDismantPage(DismantReq req);
}